﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CheckIndex.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Meeting.CheckIndex" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
    <script language="javascript" type="text/javascript" src="/Manage/Common/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>
    <script type="text/javascript">
        //第二种普通函数式调用
        function opdg(stitle, surl) {
            $.dialog({ content: 'url:' + surl, cancelBtn: false, title: stitle, width: 650, height: 340, lock: true });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li><a href="Index.aspx">会议管理</a>
                </li>
                <li class="last">会议签收
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server"></Ent:HeadMenuWeb>
    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
        DataKeyNames="MeetingId" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
        Width="100%">
        <Columns>
            <asp:TemplateField ItemStyle-Width="30" HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex+1 %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="会议议题" ItemStyle-HorizontalAlign="Left">
                <ItemTemplate>
                    <a href="Disp.aspx?Id=<%#Eval("MeetingId") %>&from=Check"><%#Eval("MTitle") %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="MTime" HeaderText="会议时间" />
            <asp:BoundField DataField="MAddress" HeaderText="会议地点" />
            <asp:TemplateField HeaderText="人员(人)">
                <ItemTemplate>
                    <a href="#" onclick="opdg('参与人员','/Modules/Meeting/Users.aspx?Id=<%#Eval("MeetingId") %>&u=<%#Eval("MUsers") %>')">
                        <%#Enterprise.Infrastructure.Utility.GetUserNum((string)Eval("MUserS")) %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:TemplateField HeaderText="发起部门">
                                <ItemTemplate>
                                    <%#Enterprise.Service.Department.DepartmentService.GetDepartMentName((int)Eval("MDepartment")) %>
                                </ItemTemplate>
                            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="发起人">
                <ItemTemplate>
                    <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("MUser")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="会议纪要">
                <ItemTemplate>
                    <%#string.IsNullOrEmpty((string)Eval("MFiles"))==true?"未上传": "<a href=\"#\" onclick=\"opdg('会议纪要','/Modules/Meeting/Record.aspx?Id="+Eval("MeetingId")+"')\"><img src=\"../../Styles/_img/icons/file.png\" title=\"会议纪要\" alt=\"\"/></a>"%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="30">
                <ItemTemplate>
                    <a href="CheckIndex.aspx?Id=<%#Eval("MeetingId") %>&Cmd=qs">签收</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="GridViewHeaderStyle" />
        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
        <RowStyle CssClass="GridViewRowStyle" />
        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
            PreviousPageText="上一页" />
        <PagerStyle CssClass="GridViewPagerStyle" />
    </asp:GridView>
</asp:Content>
